@import '~antd/es/style/themes/default.less';

@pro-header-hover-bg: rgba(0, 0, 0, 0.025);

.menu {
  :global(.anticon) {
    margin-right: 8px;
  }

  :global(.ant-dropdown-menu-item) {
    min-width: 160px;
  }
}

.right {
  display: flex;
  float: right;
  height: 48px;
  margin-left: auto;
  overflow: hidden;

  .action {
    display: flex;
    align-items: center;
    height: 48px;
    padding: 0 12px;
    cursor: pointer;
    transition: all 0.3s;

    > span {
      vertical-align: middle;
    }

    &:hover {
      background: @pro-header-hover-bg;
    }

    &:global(.opened) {
      background: @pro-header-hover-bg;
    }
  }

  .search {
    padding: 0 12px;

    &:hover {
      background: transparent;
    }
  }

  .account {
    .avatar {
      margin-right: 8px;
      color: @primary-color;
      vertical-align: top;
      background: rgb(255 255 255 / 85%);
    }
  }
}

.dark {
  .action {
    &:hover {
      background: #252a3d;
    }

    &:global(.opened) {
      background: #252a3d;
    }
  }
}

.rightContentWrap {
  display: flex;
  width: 95%;

  .left {
    flex: 1 1 auto;
    width: 800px;
    text-align: center;
  }

  .right {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-around;

    .message {
      position: relative;
      top: 2px;
      cursor: pointer;

      img {
        width: 20px;
      }
    }
  }
}

@media screen and (max-width: 1000px) {
  .rightContentWrap {
    display: flex;
    width: 100%;

    .left {
      display: none;
    }
  }
}
@media screen and (max-width: 800px) {
  .rightContentWrap {
    display: flex;
    width: 100%;

    .right {
      display: flex;
      flex: 0 0 auto;
      align-items: center;
      justify-content: space-around;
      width: 230px;
    }
  }
}
